package com.wanxi.dangdang.model.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;
import java.util.Date;
/**
 * @author wr
 * @date 20210830
 * @description 景区类
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "com.wanxi.dangdang.model.pojo.Scenic",description = "景区类")
@Document(indexName = "scenic")
public class Scenic {
    @ApiModelProperty(value = "主键id",example = "唯一主键")
    private Long id;
    @ApiModelProperty(value = "景区编号")
    private String scenicNumber;
    @ApiModelProperty(value = "景区标题")
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String title;
    @ApiModelProperty(value = "主图")
    private String centerPicture;
    @ApiModelProperty(value = "详情(图片)")
    private String details;
    @ApiModelProperty(value = "区id")
    private String districtId;
    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;
    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;
    @ApiModelProperty(value = "地址")
    private String address;
    @ApiModelProperty(value = "电话")
    private String phone;
    /**
     * @Author:YanZhengYi
     * @Description: 库存：从String改为Integer
     * @Date: 14:43 2021/8/30
     */
    @ApiModelProperty(value = "库存")
    private Integer repertory;
    @ApiModelProperty(value = "原始库存量")
    private Integer originRepertory;
    @ApiModelProperty(value = "市场价")
    private BigDecimal marketPrice;
    @ApiModelProperty(value = "销售价")
    private BigDecimal salesPrice;
    @ApiModelProperty(value = "成本价格")
    private BigDecimal costPrice;
    /**
     * @Author:YanZhengYi
     * @Description: 销量字段由Double改为Integer
     * @Date: 14:31 2021/8/30
     */
    @ApiModelProperty(value = "销量:只增不减支付后就加")
    private Integer sale;
    @ApiModelProperty(value = "佣金比例")
    private Double commissionRate;
    /**
     * @Author:YanZhengYi
     * @Description: issue字段由String改为Integer类型
     * @Date: 14:28 2021/8/30
     */
    @ApiModelProperty(value = "上下架\\r\\n启动或停用\\r\\n0-下架(false)\\r\\n1-上架(true)")
    private Integer issue;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "0表示未删除，1表示删除 ，有默认")
    private Integer deleteStatus;
}
